Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var x1 = new Object(); // A new Object object var x2 = new String(); // A new String object var x3 = new Number(); // A new Number object var x4 = new Boolean() // A new Boolean object var x5 = new Array(); // A new Array object var x6 = new RegExp(); // A new RegExp object var x7 = new Function(); // A new Function object var x8 = new Date(); // A new Date object document.getElementById("demo").innerHTML = "x1: " + typeof x1 + "<br>" + "x2: " + typeof x2 + "<br>" + "x3: " + typeof x3 + "<br>" + "x4: " + typeof x4 + "<br>" + "x5: " + typeof x5 + "<br>" + "x6: " + typeof x6 + "<br>" + "x7: " + typeof x7 + "<br>" + "x8: " + typeof x8 + "<br>"; </script> <p>There is no need to use String(), Number(), Boolean(), Array(), and RegExp()</p> <p>Read the JavaScript tutorials.</p> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_object_builtin by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:24:36 GMT --> </html>
Result:
Try it Yourself - © w3schools.com